export default {
  default: (state=0, action) => state,
  first: (state=1, action) => state,
  second: (state=2, action) => state,
  count: (state=0, action) => {
    const {type, payload} = action;
    switch(type){
      case "plus":
       return state + payload;
       case "minus":
       return state - payload;
      default:
        return state;
    }
  }
}